﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KingSite.Library.Mail {
    public interface IMail {
        void Send(string toAddress, string subject, string body, bool isBodyHtml);
        void Send(string toAddress, string subject, string body, bool isBodyHtml, params string[] attachments);
        void Send(string toAddress, string subject, string body, bool isBodyHtml, string[] attachments, bool async);
        void SendAsync(string toAddress, string subject, string body, bool isBodyHtml);
        void SendAsync(string toAddress, string subject, string body, bool isBodyHtml, params string[] attachments);
        bool EnabledSSL { get; set; }
        string Password { get; set; }
        int Port { get; set; }
        string SenderAddress { get; set; }
        string SenderName { get; set; }
        string Server { get; set; }
        string Username { get; set; }
    }
}
